<?php
  session_start();
/*
  This is where we start!  The switch statement below
  makes sure that we end up on a known page.
*/
?>

<?php
  $title = 'Blue Cities Exchange';
  $page  = isset($_REQUEST['page']) ? $_REQUEST['page'] : 'welcome';
  switch ($page) {
    case 'welcome' :
      $title .= '';
      break;
    case 'getStarted' :
      $title .= ' | Getting Started';
      break;
    case 'faq'   :
      $title .= ' | Frequently Asked Questions';
      break;
    case 'introGuide' :
      $title .= ' | Introductory Track';
      break;
    case 'introLocation' :
      $title .= ' | Location';
      break;
    case 'introRegulated' :
      $title .= ' | Regulation Status';
      break;
    case 'introStormwater' :
      $title .= ' | Storm Water Control';
      break;
    case 'introPollution' :
      $title .= ' | Pollution Reduction';
      break;
    case 'introResults' :
      $title .= ' | Results';
      break;
    case 'introTrading' :
      $title .= ' | Trading';
      break;
    case 'proLocation' :
      $title .= ' | Location';
      break;
    case 'proSolution' :
      $title .= ' | Solution';
      break;
    case 'proTrading' :
      $title .= ' | Solution';
      break;
    case 'glossary' :
      $title .= ' | Glossary';
      break;
    case 'admin' :
      $title .= ' | Administration';
      break;
    default :
      $page = 'welcome';
  }
?>
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title><?php echo $title?></title>
    <meta name="description" content="">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="favicon.ico">

    <link rel="stylesheet" type="text/css" href="./css/api.css"/>
    <link rel="stylesheet" type="text/css" href="./js/ext-3.4.0/resources/css/ext-all.css"/>
    <link rel="stylesheet" type="text/css" href="./js/OpenLayers-2.12-rc7/theme/default/google.css"/>

    <link rel="stylesheet" href="css/base-style.css">
    <link rel="stylesheet" href="css/site.css">
    <script src='js/jquery-1.5.1.min.js'></script>
    <script src='js/jquery.corner.js'></script>
    <!--[if lt IE 7 ]>
      <script src="js/dd_belatedpng.js"></script>
      <script>DD_belatedPNG.fix("img, .png_bg");</script>
    <![endif]-->
    <script src='js/misc.js'></script>
    <script src='js/clickHereLinks.js'></script>
  </head>
  <?php include_once('pages/'.$page.'.php')?>
</html>
